from django.shortcuts import render
from django.http import HttpResponse

from .models import Post


def index(request):
    return HttpResponse("Hello Django! abc")


def web01(request):
    return render(request, 'web01.html')


def show_name(request):
    context = {'name_list': Post.objects.all()}
    return render(request, 'show_name.html', context)

# Create your views here.
